home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Developer University / DU Projects / Graphics3D / Sources / Selection.cpp < prev    next >
Encoding:
Text File  |  1996-08-22  |  1.6 KB  |  63 lines  |  [TEXT/CWIE]

  1. //    Release Version:    $ ODF 2 $
  2. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  3.  
  4. //========================================================================
  5. #ifndef SELECTION_H
  6. #include "Selection.h"        // CGraphics3DSelection
  7. #endif
  8.  
  9. #ifndef CONTENT_H
  10. #include "Content.h"    // CGraphics3DContent
  11. #endif
  12.  
  13. //========================================================================
  14. #ifdef FW_BUILD_MAC
  15. #pragma segment graphics3d
  16. #endif
  17.  
  18. FW_DEFINE_AUTO(CGraphics3DSelection)
  19.  
  20. //========================================================================
  21. CGraphics3DSelection::CGraphics3DSelection(Environment* ev, CGraphics3DContent* content)
  22.   :    FW_CSelection(ev, false, false),
  23.     fGraphics3DContent(content)
  24. {
  25. }
  26.  
  27. //-------------------------------------------------------------------------
  28. CGraphics3DSelection::~CGraphics3DSelection()
  29. {    
  30. }
  31.  
  32. //-------------------------------------------------------------------------
  33. void 
  34. CGraphics3DSelection::CloseSelection(Environment*)
  35. {
  36. }
  37.  
  38. //-------------------------------------------------------------------------
  39. void 
  40. CGraphics3DSelection::ClearSelection(Environment*)
  41. {
  42. }
  43.  
  44. //-------------------------------------------------------------------------
  45. void 
  46. CGraphics3DSelection::SelectAll(Environment*)
  47. {
  48. }
  49.  
  50. //-------------------------------------------------------------------------
  51. FW_Boolean 
  52. CGraphics3DSelection::IsEmpty(Environment*) const
  53. {
  54.     return true;            // no data to copy
  55. }
  56.  
  57. //-------------------------------------------------------------------------
  58. FW_CContent* 
  59. CGraphics3DSelection::GetSelectedContent(Environment*)
  60. {
  61.     return fGraphics3DContent;
  62. }
  63.